package com.summer.proxy1;

public class StaticProxy2 implements Moveable {
    Moveable tank ;
    public StaticProxy2(Moveable tank){
        this.tank = tank;
    }
    @Override
    public void move() {
        long startTime = System.currentTimeMillis();
        tank.move();
        long endTime = System.currentTimeMillis();
        System.out.println("tank移动方法消耗的时间是："+(endTime-startTime));
    }
}
